using DataDynamics.ActiveReports.Document;
using DataDynamics.ActiveReports.Viewer;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace TVSGPP.bookGPP
{
	public class frmBookGPPView : Form
	{
		public string month = "";
		public string objectName = "";
		private IContainer components = null;
		private Viewer viewer1;
		public frmBookGPPView()
		{
			this.InitializeComponent();
		}
		private void frmBookTemHumPriview_Load(object sender, EventArgs e)
		{
			string text = this.objectName;
			if (text != null)
			{
				if (text == "FocusMind")
				{
					this.Text = "SỔ THEO DÕI SỬ DỤNG THUỐC HƯỚNG TÂM";
					frmFocusMindPrint frmFocusMindPrint = new frmFocusMindPrint();
					this.viewer1.Document = frmFocusMindPrint.Document;
					frmFocusMindPrint.Run();
				}
			}
		}
		private void frmBookGPPView_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmBookGPPView));
			this.viewer1 = new Viewer();
			base.SuspendLayout();
			this.viewer1.BackColor = SystemColors.Control;
			this.viewer1.Dock = DockStyle.Fill;
			this.viewer1.Document = new Document("ARNet Document");
			this.viewer1.Location = new Point(0, 0);
			this.viewer1.Name = "viewer1";
			this.viewer1.ReportViewer.CurrentPage = 0;
			this.viewer1.ReportViewer.MultiplePageCols = 3;
			this.viewer1.ReportViewer.MultiplePageRows = 2;
			this.viewer1.ReportViewer.ViewType = ViewType.Normal;
			this.viewer1.Size = new Size(884, 565);
			this.viewer1.TabIndex = 1;
			this.viewer1.TableOfContents.Text = "Table Of Contents";
			this.viewer1.TableOfContents.Width = 200;
			this.viewer1.TabTitleLength = 35;
			this.viewer1.Toolbar.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(884, 565);
			base.Controls.Add(this.viewer1);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmBookGPPView";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "SỔ BÁN THUỐC KHÔNG THEO ĐƠN";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.frmBookTemHumPriview_Load);
			base.KeyDown += new KeyEventHandler(this.frmBookGPPView_KeyDown);
			base.ResumeLayout(false);
		}
	}
}
